package com.yuexunit.finance.statement.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * @ClassName: EarningSummaryEntity
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @author kuangwj
 * @date 2017年12月05日 下午5:42:57
 */
@Entity
@Table(name = "fin_earning_summary")
public class EarningSummaryEntity {

	/** 收益汇总ID */
	@Id
	@GeneratedValue
	@Column(name = "EARNING_SUMMARY_ID")
	private Long earningSummaryId;

	/** 总放款金额 */
	@Column(name = "LOAN_AMOUNT")
	private BigDecimal loanAmount;

	/** 总放款金额日环比 */
	@Column(name = "LOAN_AMOUNT_INCREASE")
	private BigDecimal loanAmountIncrease;

	/** 总放款金额涨跌 */
	@Column(name = "LOAN_AMOUNT_RISE_FALL")
	private BigDecimal loanAmountRiseFall;
	
	/** 昨日收入 */
	@Column(name = "YESTODAY_EARNING")
	private BigDecimal yestodayEarning;

	/** 昨日收入日环比 */
	@Column(name = "YESTODAY_EARNING_INCREASE")
	private BigDecimal yestodayEarningIncrease;

	/** 昨日收入涨幅 */
	@Column(name = "YESTODAY_EARNING_RISE_FALL")
	private BigDecimal yestodayEarningRiseFall;

	/** 总收入 */
	@Column(name = "TOTAL_EARNING")
	private BigDecimal totalEarning;

	/** 总收入日环比 */
	@Column(name = "TOTAL_EARNING_INCREASE")
	private BigDecimal totalEarningIncrease;

	/** 总收入涨跌 */
	@Column(name = "TOTAL_EARNING_RISE_FALL")
	private BigDecimal totalEarningRiseFall;

	/** 0-无效;1-有效','是否删除 */
	@Column(name = "ENABLED")
	private Boolean enabled;

	/** 创建时间 */
	@Column(name = "CREATE_DT")
	private Date createDt;

	/** 更新时间 */
	@Column(name = "UPDATE_DT")
	private Date updateDt;
	
	/** 汇总时间 */
	@Column(name = "SUMMARY_DATE")
	private Integer summaryDate;

	public Integer getSummaryDate() {
		return summaryDate;
	}

	public void setSummaryDate(Integer summaryDate) {
		this.summaryDate = summaryDate;
	}

	public Long getEarningSummaryId() {
		return earningSummaryId;
	}

	public void setEarningSummaryId(Long earningSummaryId) {
		this.earningSummaryId = earningSummaryId;
	}

	public BigDecimal getLoanAmount() {
		if (loanAmount == null) {
			return BigDecimal.ZERO;
		}
		return loanAmount;
	}

	public void setLoanAmount(BigDecimal loanAmount) {
		this.loanAmount = loanAmount;
	}

	public BigDecimal getLoanAmountIncrease() {
		return loanAmountIncrease;
	}

	public void setLoanAmountIncrease(BigDecimal loanAmountIncrease) {
		this.loanAmountIncrease = loanAmountIncrease;
	}

	public BigDecimal getLoanAmountRiseFall() {
		return loanAmountRiseFall;
	}

	public void setLoanAmountRiseFall(BigDecimal loanAmountRiseFall) {
		this.loanAmountRiseFall = loanAmountRiseFall;
	}

	public BigDecimal getYestodayEarning() {
		if (yestodayEarning == null) {
			return BigDecimal.ZERO;
		}
		return yestodayEarning;
	}

	public void setYestodayEarning(BigDecimal yestodayEarning) {
		this.yestodayEarning = yestodayEarning;
	}

	public BigDecimal getYestodayEarningIncrease() {
		if (null == yestodayEarningIncrease) {
			return BigDecimal.ZERO;
		}
		return yestodayEarningIncrease;
	}

	public void setYestodayEarningIncrease(BigDecimal yestodayEarningIncrease) {
		this.yestodayEarningIncrease = yestodayEarningIncrease;
	}

	public BigDecimal getYestodayEarningRiseFall() {
		if (yestodayEarningRiseFall == null) {
			return BigDecimal.ZERO;
		}
		return yestodayEarningRiseFall;
	}

	public void setYestodayEarningRiseFall(BigDecimal yestodayEarningRiseFall) {
		this.yestodayEarningRiseFall = yestodayEarningRiseFall;
	}

	public BigDecimal getTotalEarning() {
		if (totalEarning == null) {
			return BigDecimal.ZERO;
		}
		return totalEarning;
	}

	public void setTotalEarning(BigDecimal totalEarning) {
		this.totalEarning = totalEarning;
	}

	public BigDecimal getTotalEarningIncrease() {
		return totalEarningIncrease;
	}

	public void setTotalEarningIncrease(BigDecimal totalEarningIncrease) {
		this.totalEarningIncrease = totalEarningIncrease;
	}

	public BigDecimal getTotalEarningRiseFall() {
		return totalEarningRiseFall;
	}

	public void setTotalEarningRiseFall(BigDecimal totalEarningRiseFall) {
		this.totalEarningRiseFall = totalEarningRiseFall;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getUpdateDt() {
		return updateDt;
	}

	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}

}
